import math
total=0
for i in range (1,11):
    fact=math.factorial(i)
    total+=math.factorial(i)
    print(f"{i}的阶乘是：{fact} , 1~{i}的阶乘和是：{total}")
